import { ReqAuth, ReqParams, ResResult, ReqAdd } from './model';
import { get, post } from '@/utils/request';

enum URL {
  userList='/user/userList',
  addUser = '/user/addUser',
}

const getUserList = async (params) => get({ url: URL.userList, params  });
const addUser = async (data: ReqAdd) => post({ url: URL.addUser, data });

export default { getUserList, addUser }
